* This file Is the Monadic Analysis on Economic Growth;
**Last updated 2 April 2021;

#delimit ;
clear;
set more off;
clear matrix;

capture log close;
log using "C:\Users\David.Sacko\Desktop\EcoGrow\Monadic_Analysis.smcl",replace;
use "C:\Users\David.Sacko\Desktop\EcoGrow\Monadic_Analysis.dta", clear;  
set matsize 200;
cd "C:\Users\David.Sacko\Desktop\EcoGrow\Output";
iis (ccode);
tis (year);
sort ccode year;
************************************Onset Models;
summ war_lead GDPma5 cinc majpow dem  milit log_open dev Borders multipol peaceyrm_warL warL_spl1 warL_spl2 warL_spl3;
histogram GDPma5;
graph box GDPma5;



*New Model;
*Table 1;
*Column1;
logit war_lead GDPma5 cinc majpow dem  milit log_open dev Borders multipol peaceyrm_warL warL_spl1 warL_spl2 warL_spl3,robust cluster(ccode);
outreg using Table1.txt,ctitle ("Monadic Model") se bdec(4,4) replace;
listcoef GDPma5  cinc majpow dem  milit log_open dev Borders multipol, percent help;

*Column 2;
logit war_lead GDPma5 dem_reg cinc majpow dem  milit log_open dev Borders multipol peaceyrm_warL warL_spl1 warL_spl2 warL_spl3,robust cluster(ccode);
outreg using Table1.txt,ctitle ("Regional") se bdec(4,4) append;
listcoef GDPma5  cinc majpow dem  milit log_open dev Borders multipol dem_reg, percent help;



***********Table 3 Summary Statistics;
summ war GDPma5 dem_reg c.GDPma5#c.dem_reg cinc majpow dem  milit log_open dev Borders multipol peaceyrm_war ;


log close;
clear;
exit,STATA; 

